package com.zsrt.day20170405.ch01;

import java.util.Scanner;

public class TestScanner {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int b=sc.nextInt();
		sc.close();
		if(b%2==1&&(b%3==0|b%7==0)){
			System.out.println("yes");
		}else{
			System.out.println("no");
		}
		
	}

}
